<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/22 14:12
 * Note:
 */
namespace Admin\Model;
use Think\Model;

class MemberModel extends Model
{
    public function getInfoByName($username = ''){
        if (!$username) return false;
        return $this->where(array('username'=>$username))->find();
    }
    public function getInfoById($id = 0){
        if (!$id) return false;
        return $this->where(array('id'=>$id))->find();
    }
}